package com.dt.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dt.common.annotation.Excel;
import com.dt.common.core.domain.BaseEntity;

import java.util.Date;

public class ModFileImage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 影像ID */
    private Long id;

    /** 所属档案ID */
    @Excel(name = "所属档案ID")
    private Long fileId;

    /** 所属目录ID */
    @Excel(name = "所属目录ID")
    private Long catalogId;

    /** 上传者ID */
    @Excel(name = "上传者ID")
    private Long uploadUserId;

    /** 影像内容（影像的网络访问地址，规则为“服务器 IP” + “区市盘符” + “年/月/日” + “收件编号” + “目录 ID” + “影像文件名称”） */
    @Excel(name = "影像内容")
    private String imageContent;

    /** 影像排序 */
    @Excel(name = "影像排序")
    private Long sort;

    @Excel(name = "创建者")
    private String createBy;

    @Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "更新者")
    private String updateBy;

    @Excel(name = "更新时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 删除标志（0代表存在 2代表删除） */
//    @Excel(name = "删除标志", readConverterExp = "0=存在,2=删除")
    @Excel(name = "删除标志")
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFileId(Long fileId) 
    {
        this.fileId = fileId;
    }

    public Long getFileId() 
    {
        return fileId;
    }
    public void setCatalogId(Long catalogId) 
    {
        this.catalogId = catalogId;
    }

    public Long getCatalogId() 
    {
        return catalogId;
    }
    public void setUploadUserId(Long uploadUserId) 
    {
        this.uploadUserId = uploadUserId;
    }

    public Long getUploadUserId() 
    {
        return uploadUserId;
    }
    public void setImageContent(String imageContent) 
    {
        this.imageContent = imageContent;
    }

    public String getImageContent() 
    {
        return imageContent;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("fileId", getFileId())
            .append("catalogId", getCatalogId())
            .append("uploadUserId", getUploadUserId())
            .append("imageContent", getImageContent())
            .append("sort", getSort())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
